package com.translate.web.service;
import com.basic.service.contract.IBaseService;

import java.util.List;
import java.util.function.Function;

import com.translate.entity.RoleMenuRelation;

public interface IRoleMenuRelationService extends IBaseService<RoleMenuRelation> { 

	/**
	 * 获取后台角色菜单关系
	 * @param <VO>
	 * @param vos
	 * @param function
	 * @return
	 */
	<VO> List<RoleMenuRelation> getRoleMenuRelationToCache(List<VO> vos, Function<VO, Integer> function);
	
	/**
	 * 获取菜单ids 
	 * @param <VO>
	 * @param vos
	 * @param function
	 * @return
	 */
	<VO> Long[] getMenuIds(List<VO> vos, Function<VO, Integer> function);
	
}
